<?php
	
	
	
	
	if(!isset($_SESSION['username'])){
		echo "<script>alert('请登录！');window.location.href='index.php?m=admin&c=manage'</script>";die;
	}
	
	
	$id = $_GET['id'];

	$p = isset($_GET['p'])?$_GET['p']:1;
	
	
	$num = 10;
	//除去的条数
	$c = ($p-1)*$num;

	$rows = count(dbselect($con,'message'));
	// $feild = '*';
	$data = dbselOne($con,'message','*',"$id");

	$data['mess_time'] = date('Y-m-d H:i:s',$data['mess_time']);


	//状态改为已读

	$filed['status'] = 1;
	$query = dbupdate($con,'message',$filed,"id='{$id}'");


	






	assign('data',$data);








//权限管理
authonity($con);
?>
	